home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20030409-20031118 / 000180_fdc@columbia.edu_Thu Jun 19 16:49:02 EDT 2003.msg < prev    next >
Text File  |  2020-01-01  |  3KB  |  63 lines

  1. Article: 14409 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!news.columbia.edu!news-not-for-mail
  3. From: fdc@columbia.edu (Frank da Cruz)
  4. Newsgroups: comp.protocols.kermit.misc
  5. Subject: Re: Access to all lines of an FTP multi-line reply
  6. Date: 19 Jun 2003 16:48:40 -0400
  7. Organization: Columbia University
  8. Lines: 46
  9. Message-ID: <bct7j8$je3$1@watsol.cc.columbia.edu>
  10. References: <b97068c6.0306191232.37ef0ff0@posting.google.com>
  11. NNTP-Posting-Host: watsol.cc.columbia.edu
  12. X-Trace: newsmaster.cc.columbia.edu 1056055721 29036 128.59.39.139 (19 Jun 2003 20:48:41 GMT)
  13. X-Complaints-To: postmaster@columbia.edu
  14. NNTP-Posting-Date: 19 Jun 2003 20:48:41 GMT
  15. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14409
  16.  
  17. In article <b97068c6.0306191232.37ef0ff0@posting.google.com>,
  18. Kent W. Martin <KentMartin@TexasHealth.org> wrote:
  19. : I'm using the FTP client in Kermit 95 2.1.3 on Windows XP.  The FTP
  20. : server to which I'm connected is issuing multi-line replies:
  21. :  PUT T1H4CPPZ (text) (32760092 bytes)---> PASV
  22. : 227 Entering Passive Mode (167,99,56,239,135,132).
  23. : ---> STOR T1H4CPPZ
  24. : 150 Sending file to member T1H4CPPZ in file T1H4CPPZ in library
  25. : DOWNLOADA.
  26. : 426-Records written to file T1H4CPPZ in library DOWNLOADA have been
  27. : truncated. Data in file may not be valid.
  28. : 426 Data transfer ended.
  29. : : MESSAGE: Data transfer ended.
  30. : According to section 4.2 (FTP replies) at
  31. : ftp://ftp.isi.edu/in-notes/rfc959.txt the format of this multi-line
  32. : reply is correct.
  33. : In K95 \v(ftp_code) is correctly getting set to 426.  However,
  34. : \v(ftp_message) is getting set to "Data transfer ended.".  How can I
  35. : access the "Records written to file yadda, yadda, yadda" part of the
  36. : message?
  37. : BTW, I know why the server is issuing the message about the file
  38. : having been truncated.  That's not what I'm trying to fix.
  39. When there are multiple lines in a message, Kermit saves only the last
  40. one (as you noticed).  If there are multiple messages, Kermit saves only
  41. the last one.
  42.  
  43. If a message can have 2 lines, it can have 2 million; there's no good way
  44. to save everything when there's no limit on what might have to be saved.
  45.  
  46. Similarly if there are multiple replies.
  47.  
  48. I suppose it would be possible to add an option to log FTP server replies
  49. to a file, but then you'd have to open the file and read it to get the
  50. messages out.  But if that's OK with you, then you can do it already, like
  51. this (assuming you're using C-Kermit):
  52.  
  53.   log debug {| grep "^FTP" > ftp.log}
  54.  
  55. and then everything you want is in ftp.log.
  56.  
  57. - Frank
  58.